﻿
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;

using System.Windows.Shapes;
using Sqo;

namespace Ivvy_Silverlight
{


    /// [Generated Jan 31 2011]

    public partial class i_Status : ISqoDataObject
    {

        #region "private fields"

        private int _Status_ID;
        private string _Status_Name;
        private bool _Disabled;
        private int _Style_ID;
        private string _IconImage;
        private int _Icon_Style_ID;
        private int _Calendar_Style_ID;

        #endregion

        #region "public properties"

        public int Status_ID
        {
            get { return _Status_ID; }
            set { _Status_ID = value; }
        }
        public string Status_Name
        {
            get { return _Status_Name; }
            set { _Status_Name = value; }
        }
        public bool Disabled
        {
            get { return _Disabled; }
            set { _Disabled = value; }
        }
        public int Style_ID
        {
            get { return _Style_ID; }
            set { _Style_ID = value; }
        }
        public string IconImage
        {
            get { return _IconImage; }
            set { _IconImage = value; }
        }
        public int Icon_Style_ID
        {
            get { return _Icon_Style_ID; }
            set { _Icon_Style_ID = value; }
        }
        public int Calendar_Style_ID
        {
            get { return _Calendar_Style_ID; }
            set { _Calendar_Style_ID = value; }
        }

        #endregion

        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }

        int ISqoDataObject.OID { get { return Status_ID; } set { } }
        #endregion

        #region "MAPPER"
        public static Ivvy_Silverlight.i_Status Convert(i7SR.Status od_Status)
        {
            return new Ivvy_Silverlight.i_Status()
            {

                Status_ID = Utils.IsNull(od_Status.Status_ID),
                Status_Name = Utils.IsNull(od_Status.Status1),
                Disabled = Utils.IsNull(od_Status.Disabled),
                Style_ID = Utils.IsNull(od_Status.Style_ID),
                IconImage = Utils.IsNull(od_Status.IconImage),
                Icon_Style_ID = Utils.IsNull(od_Status.Icon_Style_ID),
                Calendar_Style_ID = Utils.IsNull(od_Status.Calendar_Style_ID),

            };
        }
        #endregion


        #region "REVERSEMAPPER"
        public static Ivvy_Silverlight.i7SR.Status ReverseConvert(i_Status od_Status)
        {
            return new Ivvy_Silverlight.i7SR.Status()
            {

                Status_ID = Utils.ReverseIsNull(od_Status.Status_ID).Value,
                Status1 = Utils.ReverseIsNull(od_Status.Status_Name),
                Disabled = Utils.ReverseIsNull(od_Status.Disabled),
                Style_ID = Utils.ReverseIsNull(od_Status.Style_ID),
                IconImage = Utils.ReverseIsNull(od_Status.IconImage),
                Icon_Style_ID = Utils.ReverseIsNull(od_Status.Icon_Style_ID),
                Calendar_Style_ID = Utils.ReverseIsNull(od_Status.Calendar_Style_ID),

            };
        }
        #endregion

    }
}

